<?php

namespace app\admin\model;

use think\Model;
use app\common\model\StaffModel;


class ApplyTeamModel extends Model
{

    

    

    // 表名
    protected $name = 'apply_team';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];








    public function admin()
    {
        return $this->belongsTo(AdminUser::class, 'aid', 'id', [], 'LEFT');
    }


    public function staff()
    {
        return $this->belongsTo(StaffModel::class, 'uid', 'id', [], 'LEFT');
    }

}
